home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CDsupport / ProNET / Developer / include / devices / pronet.i < prev   
Text File  |  1997-01-27  |  1KB  |  66 lines

  1.     IFND    DEVICES_PRONET_I
  2. DEVICES_PRONET_I SET 1
  3. **
  4. **  ProNET
  5. **
  6. **  Assembler include file.
  7. **
  8. **  (C) Copyright 1994-1997 Michael Krause
  9. **                          <rawstyle@blackbox.dame.de>
  10. **
  11.  
  12.     IFND    EXEC_IO_I
  13.     INCLUDE    "exec/io.i"
  14.     ENDC
  15.  
  16. ** Set this bit in Flags for OpenDevice to enable extensive error messages.
  17.  
  18.     BITDEF    PN,ERRORSTRING,0
  19.  
  20. ** These errors can occur after OpenDevice():
  21.  
  22. PNDERR_PORTEXISTS    equ    -94
  23. PNDERR_DRIVERTROUBLE    equ    -96
  24. PNDERR_UNIT_NOT_DEFINED    equ    -97
  25.  
  26. ** This error can only occur after CMD_WRITE:
  27.  
  28. PNDERR_DESTINATION_GONE    equ    -98
  29.  
  30. ** The ProNET IO Request:
  31.  
  32.       STRUCTURE    PNRequest,IO_SIZE
  33.     APTR    pnr_MsgPort
  34.     UWORD    pnr_NetSourcePort
  35.     UWORD    pnr_NetDestPort
  36.     APTR    pnr_Data
  37.     ULONG    pnr_Length
  38.     LABEL    pnr_Size
  39.  
  40. ** You can use this in pnr_NetSourcePort:
  41.  
  42. PNP_NEXTFREE    equ    -2
  43.  
  44. *---
  45. *--- Following is data for ProNET driver developers
  46. *---
  47.  
  48. ** The ProNET Driver Data Structure:
  49.  
  50.       STRUCTURE PNDrvData,0
  51.     UBYTE    pndd_ReadSignalBit
  52.     UBYTE    pndd_pad0        ;leave this blank
  53.     APTR    pndd_ReadQuery
  54.     APTR    pndd_ReadFlush
  55.     APTR    pndd_Read
  56.     APTR    pndd_Write
  57.     APTR    pndd_Exit
  58.     LABEL    pndd_Size
  59.  
  60. ** Return codes (magic cookies) for the driver's Init routine:
  61.  
  62. PNDRVERR_NO_MEMORY    equ    $ffffffff ;no memory
  63. PNDRVERR_WRONG_ARGS    equ    $fffffffe ;wrong .config arguments
  64.  
  65.     ENDC    ; DEVICES_PRONET_I
  66.